<%@ page language="java" import="java.util.*,com.hs.auth.model.*,com.hs.auth.*" pageEncoding="utf-8"%>
<%
//HsAccount accInfo = (HsAccount)request.getSession().getAttribute(AUTHConstant.USERINSESSION);
//HsUserinfo userinfo = accInfo==null?null:accInfo.getUserinfo();
//String accid = String.valueOf(accInfo.getId());
String treeStr1 = (String)request.getAttribute("treeStr1"); 
String treeStr2 = (String)request.getAttribute("treeStr2");  
String treeStr3 = (String)request.getAttribute("treeStr3"); 
String treeStr4 = (String)request.getAttribute("treeStr4"); 

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<%@ include file="../../include.jsp"%>   
<link rel="stylesheet" href="<%=basePath %>thirtpart/jquery/ztree/css/demo.css" type="text/css"/>
<script language="javascript" type="text/javascript" src="<%=path %>/thirtpart/My97DatePicker/WdatePicker.js"></script>

<link rel="stylesheet" href="<%=basePath %>thirtpart/jquery/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css"/>
<script type="text/javascript" src="<%=basePath %>thirtpart/jquery/ztree/js/jquery.ztree.core-3.1.js"></script>
<script type="text/javascript" src="<%=basePath %>thirtpart/jquery/ztree/js/jquery.ztree.excheck-3.1.js"></script>
<script> 
<!--
		var setting1 = { 
			check: {
				enable: true
			},
			data: {
				simpleData: {
					enable: true
				}
			}
		};
		var setting2 = { 
			check: {
				enable: true
			},
			data: {
				simpleData: {
					enable: true
				}
			}
		};
		var setting3 = { 
			check: {
				enable: true
			},
			data: {
				simpleData: {
					enable: true
				}
			}
		};
		var setting4 = { 
			check: {
				enable: true
			},
			data: {
				simpleData: {
					enable: true
				}
			}
		};
        var tree1  = <%=treeStr1%>;
        var tree2  = <%=treeStr2%>;
        var tree3  = <%=treeStr3%>;
        var tree4  = <%=treeStr4%>;
		var zNodes =[
			{ id:1, pId:0, name:"随意勾选 1", open:true},
			{ id:11, pId:1, name:"随意勾选 1-1", open:true},
			{ id:111, pId:11, name:"随意勾选 1-1-1"},
			{ id:112, pId:11, name:"随意勾选 1-1-2"},
			{ id:12, pId:1, name:"随意勾选 1-2", open:true},
			{ id:121, pId:12, name:"随意勾选 1-2-1"},
			{ id:122, pId:12, name:"随意勾选 1-2-2"},
			{ id:2, pId:0, name:"随意勾选 2", checked:true, open:true},
			{ id:21, pId:2, name:"随意勾选 2-1"},
			{ id:22, pId:2, name:"随意勾选 2-2", open:true},
			{ id:221, pId:22, name:"随意勾选 2-2-1", checked:true},
			{ id:222, pId:22, name:"随意勾选 2-2-2"},
			{ id:23, pId:2, name:"随意勾选 2-3"}
		];
		
		var code;
		
		function setCheck() {
			var zTree = $.fn.zTree.getZTreeObj("treeone"),
			py = $("#py").attr("checked")? "p":"",
			sy = $("#sy").attr("checked")? "s":"",
			pn = $("#pn").attr("checked")? "p":"",
			sn = $("#sn").attr("checked")? "s":"",
			type = { "Y":py + sy, "N":pn + sn};
			zTree.setting.check.chkboxType = type;
			showCode('setting.check.chkboxType = { "Y" : "' + type.Y + '", "N" : "' + type.N + '" };');
		}
		function showCode(str) {
			if (!code) code = $("#code");
			code.empty();
			code.append("<li>"+str+"</li>");
		}
		
		$(document).ready(function(){
			$.fn.zTree.init($("#treeone"), setting1, tree1);
			//$.fn.zTree.init($("#treetwo"), setting2, tree2);
			//$.fn.zTree.init($("#treethree"), setting3, tree3);
			//$.fn.zTree.init($("#treefour"), setting4, tree4);
			setCheck();
			$("#py").bind("change", setCheck);
			$("#sy").bind("change", setCheck);
			$("#pn").bind("change", setCheck);
			$("#sn").bind("change", setCheck);
		});
		
		
/**
基本检索
*/		
function generalSearch(display,condition){
	var divid = "txt_";
	var onestr = "";
	var win = document.getElementById('resultlist').contentWindow;
 	var basiccol = document.getElementById("basic_col").value;
	var basicvalue = document.getElementById("basic_colvalue").value;
	var basicspecial = document.getElementById("basic_special").value;;
	if(display == ''){
		if(isNull(basicvalue)){
			alert("检索条件不能为空!");
			document.getElementById("basic_colvalue").focus();
		    return;
		}
	}
	onestr = "?basiccol="+basiccol +"&basicvalue="+basicvalue+"&basicspecial="+basicspecial+"&displaytype=" + display;
	document.getElementById("resultlist").src="<%=basePath %>search/dosearch.do"+onestr;
}	
//二次检索
function generalSecondSearch(condition){
	var win = document.getElementById('resultlist').contentWindow;
	var onesql = win.document.getElementById('onesql').value;
	//alert(onesql);
	var divid = "txt_";
	var onestr = "";
	var basiccol = document.getElementById("basic_col").value;
	var basicvalue = document.getElementById("basic_colvalue").value;
	var basicspecial = document.getElementById("basic_special").value;;
	if(isNull(basicvalue)){
		alert("检索条件不能为空!");
		document.getElementById("basic_colvalue").focus();
	    return;
	}
	onestr = "?basiccol="+basiccol +"&basicvalue="+basicvalue+"&basicspecial="+basicspecial;
	if(onesql !=null && onesql!=""){
		onestr = onestr + "&onesql=" + encodeURIComponent(onesql);
	}
	document.getElementById("resultlist").src="<%=basePath %>search/dosearch.do"+onestr;
	

}

function resetAll(){
 	var   obj   =   document.all.tags("input"); 
	for(i=0;i <obj.length;i++){ 
    if(obj[i].type== "text"){ 
            obj[i].value   =   ""; 
    } 
}
 
 }
 /**
 	控制各个检索模块DIV的显示
 */
 function searchViewDisplay(divid){
 	 var div1 = document.getElementById(divid); 
     if('basic_search' == divid){
     	 if(div1.style != null){
     		 div1.style.display="";
     	}else{
	     	hidediv('advsearch');
	     	hidediv('advmod');
	     	hidediv('adveng');
	     	hidediv('advbook');
     	}
     } else if('advsearch' == divid){
     	 if(div1.style != null){
     		 div1.style.display="";
     	}else{
	     	hidediv('basic_search');
	     	hidediv('advmod');
	     	hidediv('adveng');
	     	hidediv('advbook');
     	}
     } else if('advmod' == divid){
     	 if(div1.style != null){
     		 div1.style.display="";
	     }else{
	     	hidediv('basic_search');
	     	hidediv('advsearch');
	     	hidediv('adveng');
	     	hidediv('advbook');
	     }
     } else if('adveng' == divid){
     	if(div1.style != null){
     		 div1.style.display="";
     	}else{
	     	hidediv('basic_search');
	     	hidediv('advmod');
	     	hidediv('advsearch');
	     	hidediv('advbook');
     	}
     } else if('advbook' == divid){
     	if(div1.style != null){
     		 div1.style.display="";
     	}else{
     	hidediv('basic_search');
     	hidediv('advmod');
     	hidediv('advsearch');
     	hidediv('adveng');
     	}
     } 
 }
 /**
 	隐藏DIV显示
 */
 function hidediv(hidiv){
 	 var obj = document.getElementById(hidiv);
 	  if(div1.style != null)
     		 div1.style.display="none";
 }
 /**
 	获得对象
 */
 function ge(a){return document.getElementById(a)}
 /**
 	增加行
 */
 function AddRowEx(divid,divindex,divcount){
 	try{
		if(ge(divindex).value==ge(divcount).value){
			return
		}
		var curID=parseInt($("#"+divindex).val());
		var copyID=curID+1;
		var curTrID=divid+"_"+curID.toString();
		var copyTrID=divid+"_"+copyID.toString();
		//alert(curTrID + "," + copyTrID);
		var copyHtml="";
		if($("#"+copyTrID).html()!=null){
			$("#"+copyTrID).show()
		}else{
			var cloneObj=$("#"+curTrID).clone();
			if(curID==1){
				if(cloneObj.find("td:first")!=null){
					cloneObj.find("td:first").remove()
				}
				if(cloneObj.find("span:first")!=null){
					cloneObj.find("span:first").remove()
				}
				var logicalTd=$("#hidden_logical_"+divid).html();
				if(logicalTd!=""){
					var reg=/{key}/g;
					logicalTd=logicalTd.replace(reg,copyTrID);
					cloneObj=cloneObj.prepend(logicalTd)
				}
			}
			copyHtml=$("<div></div>").append(cloneObj).html();
			var reg1=eval("/"+curTrID+"/g");
			copyHtml=copyHtml.replace(reg1,divid+"_"+copyID.toString());
			//alert(copyHtml);
			if(copyHtml!=""){
				$("#"+curTrID).after(copyHtml)
			}
		}
		var objvalue=ge(copyTrID+"_value1");
		if(objvalue!=null){
			objvalue.value=""
		}
		objvalue=ge(copyTrID+"_value2");
		if(objvalue!=null){
			objvalue.value=""
		}
		ge(divindex).value=copyID.toString();
		var obj=ge(copyTrID+"_sel");
		if(!obj){
			obj=ge(copyTrID+"_sel1")
		}
		if(obj){
			obj.options[copyID-1].selected=true;
			obj.onchange()
		}
	}catch(e){
	}
 }

 function DeleteRow(h,c,b){
	try{
		if(ge(c).value=="1"){
			return
		}else{
			var g=parseInt(ge(c).value);
			var f=h+"_"+g;var a=ge(f+"_value1");
			if(a!=null){
				a.value=""
			}
			a=ge(f+"_value2");
			if(a!=null){
				a.value=""
			}
			ge(f).style.display="none";
			g--;
			ge(c).value=g
		}
	}catch(d){
	return
	}
}
function resetAll(){
 	var   obj   =   document.all.tags("input"); 
	for(i=0;i <obj.length;i++){ 
	    if(obj[i].type== "text"){ 
	            obj[i].value   =   ""; 
	    } 
	}
 
}
		//-->
</script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    	<td width="25%">
        	<dl class="left_menu">
        	    <div id="treeone" class="ztree"></div>
                <!-- dt>TD-方剂分类</dt>
                <dd id="treeone" class="ztree"></dd>
                <dt>TC-证侯分类</dt>
                <dd id="treetwo" class="ztree"></dd>
                <dt>TD-中药分类</dt>
                <dd id="treethree" class="ztree"></dd>
                <dt>TD-病名分类</dt>
                <dd id="treefour" class="ztree">3</dd-->
            </dl>
        </td>
        <td> 
        <div class="tab">
            	<span><a href="javascript:searchViewDisplay('basic_search');" style="TEXT-DECORATION:none">基本检索</a></span>
                <span><a href="javascript:searchViewDisplay('advsearch');" style="TEXT-DECORATION:none">高级检索</a></span>
                <span><a href="javascript:searchViewDisplay('advmod');" style="TEXT-DECORATION:none">中文期刊检索</a></span>
                <span><a href="javascript:searchViewDisplay('adveng');" style="TEXT-DECORATION:none">英文期刊检索</a></span>
                <span><a href="javascript:searchViewDisplay('advbook');" style="TEXT-DECORATION:none">古籍检索</a></span>
        </div>
        <div class="sear" id="basic_search" style="display:block">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">  
             <tr>
			     <td nowrap="true" width="15%" align=center>
			    		检索入口
		         </td>
			     <td width="15%" align=center>
				     <select  name='basic_col' id='basic_col' style="width:99%">
			                <option value="TITLE">中文标题</option>
							<option value="TITLEN">英文标题</option>
							<option value="BOOKNAME">书籍名称</option>
							<option value="TCMNAME">中医病名</option>
							<option value="VOLUMESECTION">卷册章节</option>
							<option value="ORIGINALTEXT">原文文本</option>
							<option value="PERIODICALNAME">期刊名称</option>
							<option value="PERIODICALNAMEENG">英文期刊名称</option>
							<option value="AUTHOR">作者</option>
							<option value="AUTHOREN">英文作者</option>
							<option value="AUTHORUNIT">作者单位</option>
							<option value="AUTHORADDRESS">作者通讯地址</option>
							<option value="KEYWORD">中文关键字</option>
							<option value="KEYWORDENG">英文关键字</option>
							<option value="SUBJECTWORD">中文主题词</option>
							<option value="SUBJECTWORDENG">英文主题词</option>
							<option value="ABSTRACT">中文摘要</option>
							<option value="ABSTRACTENG">英文摘要</option>
							<option value="LANGUAGE">语种</option>
							<option value="DOCUMENTTYPE">文献类型</option>
							<option value="CLASSNO">分类号</option>
							<option value="FUNDSTR">资助情况</option>
							<option value="YEARSTR">年份</option>
							<option value="PERIOD">期</option> 
							<option value="FUNDTYPE">资助类别</option>
							<option value="COMFROM">文献来源</option>
							<option value="AREASTR">国家\省市</option>
							<option value="CWNUM">参文数</option>
							<option value="PUBLISHAREA">出版地</option>
							<option value="IMPRESSWORD">特征词</option>
							<option value="USERSUBJECT">人名主题</option> 
			          </select>
			       </td>
			      <td width="35%" >
			     	<input name="basic_colvalue" id="basic_colvalue" type="text" value="" style="width:98%"  />
			      </td>
			      <td width="10%" align=center>
				     <select id="basic_special" name="basic_special" style="width:97%">
					     <option value=0 selected>精确</option>
					     <option value=1>模糊</option>
				     </select>
			      </td> 
			      <td rowspan=2 align=center nowrap>
                    <input   type="button" class="butto" onclick="generalSearch('','');" value=" 检 索 "/>
                    <input   type="button" class="butto" onclick="resetAll();" value=" 清 除 "/> 
                    <input   type="button" class="butto" onclick="generalSecondSearch('');" value="二次检索"/>
                 </td>
              </tr>
              <tr>
                <td align=center>出版时间</td>
                <td><input type="text" class="Wdate" id="basic_start" value="" style="width:80%;vertical-align:middle" name="basic_start"  onFocus="WdatePicker({el:'basic_start',dateFmt:'yyyy'})"  /></td>
                <td>-<input type="text" class="Wdate" id="basic_end" value="" style="width:35%;vertical-align:middle" name="basic_end"  onFocus="WdatePicker({el:'basic_end',dateFmt:'yyyy'})"  /></td>
                <td></td>
               </tr>
         </table> 
        </div>  
        <div class="sear" id="advsearch" style="display:none">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">  
             <input id="txt_i" value="1" type="hidden" name="txt_i"></input>
             <input id="txt_c" value="14" type="hidden" name="txt_c"></input>
             <tr id="hidden_logical_txt" style="display:none">
                <td nowrap="true" style="width:10%;" align="right" >
                    <select id="{key}_logical" name="{key}_logical">
                        <option value="0" selected="">并且</option>
                        <option value="1">或者</option>
                    </select> 
                </td>
             </tr> 
             <tr id="txt_1">
	             <td nowrap  width="10%" align=center>
		    			<input onclick="AddRowEx('txt','txt_i','txt_c');" type="button" value="  +  " class="butto"/>
		    			<input onclick="DeleteRow('txt','txt_i','txt_c');" type="button" value="  -  " class="butto"/>
	             </td> 
	             <td width="15%">
		     		<select id='txt_1_sel' name='txt_1_sel' style="width:100%">
	                  <option value="TITLE">中文标题</option>
							<option value="TITLEN">英文标题</option>
							<option value="BOOKNAME">书籍名称</option> 
							<option value="VOLUMESECTION">卷册章节</option>
							<option value="ORIGINALTEXT">原文文本</option>
							<option value="PERIODICALNAME">期刊名称</option>
							<option value="PERIODICALNAMEENG">英文期刊名称</option>
							<option value="AUTHOR">作者</option>
							<option value="AUTHOREN">英文作者</option>
							<option value="AUTHORUNIT">作者单位</option>
							<option value="AUTHORADDRESS">作者通讯地址</option>
							<option value="KEYWORD">中文关键字</option>
							<option value="KEYWORDENG">英文关键字</option>
							<option value="SUBJECTWORD">中文主题词</option>
							<option value="SUBJECTWORDENG">英文主题词</option>
							<option value="ABSTRACT">中文摘要</option>
							<option value="ABSTRACTENG">英文摘要</option>
							<option value="LANGUAGE">语种</option>
							<option value="DOCUMENTTYPE">文献类型</option>
							<option value="CLASSNO">分类号</option>
							<option value="FUNDSTR">资助情况</option>
							<option value="YEARSTR">年份</option>
							<option value="PERIOD">期</option> 
							<option value="FUNDTYPE">资助类别</option>
							<option value="COMFROM">文献来源</option>
							<option value="AREASTR">国家\省市</option>
							<option value="CWNUM">参文数</option>
							<option value="PUBLISHAREA">出版地</option>
							<option value="IMPRESSWORD">特征词</option>
							<option value="USERSUBJECT">人名主题</option> 
			             	<option value='BOOKCD'>朝代</option>
			          </select>
	             </td>
	             <td width="60%" >
	     				<input name="txt_1_value" id="txt_1_value" type="text" value="" style="width:99%" class="sear_input"/>
	     		 </td>
	     		 <td width="15%">
				     <select id="txt_1_special" name="txt_1_special" style="width:100%">
					     <option value=0 selected>精确</option>
					     <option value=1>模糊</option>
				     </select>
	     		 </td>
	     	 </tr> 
              <tr>
                <td align=center>出版时间</td>
                <td><input type="text" class="Wdate" id="startyearadv" value="" style="width:70%;vertical-align:middle" name="startyearadv"  onFocus="WdatePicker({el:'startyearadv',dateFmt:'yyyy'})"  /></td>
                <td>-<input type="text" class="Wdate" id="endyearadv" value="" style="width:20%;vertical-align:middle" name="endyearadv"  onFocus="WdatePicker({el:'endyearadv',dateFmt:'yyyy'})"  />
                 中医病名：<input type="text" name="tcmname" id="tcmname" value="" style="width:45%"/> 
                         <select id="tcmname_spec" name="tcmname_spec" style="width:8%">
						     <option value=0 selected>正名</option>
						     <option value=1>异名</option>
				     	 </select> 
				     	  <select id="tcmname_logic" name="tcmname_logic" style="width:8%">
						     <option value=0 selected>精确</option>
						     <option value=1>模糊</option>
				     	 </select> 
                </td>
                <td>
                	<input name="" type="button" class="butto" value=" 检 索 "/>&nbsp;
                    <input name="" type="button" class="butto" value=" 清 除 "/> 
                </td>
               </tr>
         </table> 
        </div> 
        <div class="sear" id="advmod" style="display:none">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">  
             <input id="mod_i" value="1" type="hidden" name="mod_i"></input>
             <input id="mod_c" value="14" type="hidden" name="mod_c"></input>
             <tr id="hidden_logical_mod" style="display:none">
                <td nowrap="true" style="width:10%;" align="right" >
                    <select id="{key}_logical" name="{key}_logical">
                        <option value="0" selected="">并且</option>
                        <option value="1">或者</option>
                    </select> 
                </td>
             </tr> 
             <tr id="mod_1">
	             <td nowrap  width="10%" align=center>
		    			<input onclick="AddRowEx('mod','mod_i','mod_c');" type="button" value="  +  " class="butto"/>
		    			<input onclick="DeleteRow('mod','mod_i','mod_c');" type="button" value="  -  " class="butto"/>
	             </td> 
	             <td width="15%">
		     		<select id='mod_1_sel' name='mod_1_sel' style="width:100%">  
							<option value="PERIODICALNAME">期刊名称</option> 
							<option value="AUTHOR">作者</option> 
							<option value="AUTHORUNIT">作者单位</option>
							<option value="AUTHORADDRESS">作者通讯地址</option>
							<option value="KEYWORD">中文关键字</option> 
							<option value="SUBJECTWORD">中文主题词</option> 
							<option value="ABSTRACT">中文摘要</option> 
							<option value="LANGUAGE">语种</option>
							<option value="DOCUMENTTYPE">文献类型</option>
							<option value="CLASSNO">分类号</option>
							<option value="FUNDSTR">资助情况</option>
							<option value="YEARSTR">年份</option>
							<option value="PERIOD">期</option> 
							<option value="FUNDTYPE">资助类别</option>
							<option value="COMFROM">文献来源</option>
							<option value="AREASTR">国家\省市</option>
							<option value="CWNUM">参文数</option>
							<option value="PUBLISHAREA">出版地</option>
							<option value="IMPRESSWORD">特征词</option>
							<option value="USERSUBJECT">人名主题</option> 
			          </select>
	             </td>
	             <td width="60%" >
	     				<input name="mod_1_value" id="mod_1_value" type="text" value="" style="width:99%" class="sear_input"/>
	     		 </td>
	     		 <td width="15%">
				     <select id="mod_1_special" name="mod_1_special" style="width:100%">
					     <option value=0 selected>精确</option>
					     <option value=1>模糊</option>
				     </select>
	     		 </td>
	     	 </tr> 
              <tr>
                <td align=center>出版时间</td>
                <td><input type="text" class="Wdate" id="startyearmod" value="" style="width:70%;vertical-align:middle" name="startyearmod"  onFocus="WdatePicker({el:'startyearmod',dateFmt:'yyyy'})"  /></td>
                <td>-<input type="text" class="Wdate" id="endyearmod" value="" style="width:20%;vertical-align:middle" name="endyearmod"  onFocus="WdatePicker({el:'endyearmod',dateFmt:'yyyy'})"  />
                 中医病名：<input type="text" name="tcmname" id="tcmname" value="" style="width:45%"/> 
                         <select id="tcmname_spec" name="tcmname_spec" style="width:8%">
						     <option value=0 selected>正名</option>
						     <option value=1>异名</option>
				     	 </select> 
				     	  <select id="tcmname_logic" name="tcmname_logic" style="width:8%">
						     <option value=0 selected>精确</option>
						     <option value=1>模糊</option>
				     	 </select> 
                </td>
                <td>
                	<input name="" type="button" class="butto" value=" 检 索 "/>&nbsp;
                    <input name="" type="button" class="butto" value=" 清 除 "/> 
                </td>
               </tr>
         </table> 
        </div> 
        <div class="sear" id="adveng" style="display:none">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">  
             <input id="eng_i" value="1" type="hidden" name="eng_i"></input>
             <input id="eng_c" value="14" type="hidden" name="eng_c"></input>
             <tr id="hidden_logical_eng" style="display:none">
                <td nowrap="true" style="width:10%;" align="right" >
                    <select id="{key}_logical" name="{key}_logical">
                        <option value="0" selected="">并且</option>
                        <option value="1">或者</option>
                    </select> 
                </td>
             </tr> 
             <tr id="eng_1">
	             <td nowrap  width="10%" align=center>
		    			<input onclick="AddRowEx('eng','eng_i','eng_c');" type="button" value="  +  " class="butto"/>
		    			<input onclick="DeleteRow('eng','eng_i','eng_c');" type="button" value="  -  " class="butto"/>
	             </td> 
	             <td width="15%">
		     		<select id='eng_1_sel' name='eng_1_sel' style="width:100%">
	                        <option value="TITLEN">英文标题</option>  
							<option value="PERIODICALNAMEENG">英文期刊名称</option> 
							<option value="AUTHOREN">英文作者</option>   
							<option value="KEYWORDENG">英文关键字</option> 
							<option value="SUBJECTWORDENG">英文主题词</option> 
							<option value="ABSTRACTENG">英文摘要</option> 
							<option value="DOCUMENTTYPE">文献类型</option>
							<option value="CLASSNO">分类号</option> 
							<option value="YEARSTR">年份</option>
							<option value="PERIOD">期</option> 
							<option value="FUNDTYPE">资助类别</option>
							<option value="COMFROM">文献来源</option>
							<option value="AREASTR">国家\省市</option>
							<option value="CWNUM">参文数</option>
							<option value="PUBLISHAREA">出版地</option>
							<option value="IMPRESSWORD">特征词</option>
							<option value="USERSUBJECT">人名主题</option> 
			          </select>
	             </td>
	             <td width="60%" >
	     				<input name="eng_1_value" id="eng_1_value" type="text" value="" style="width:99%" class="sear_input"/>
	     		 </td>
	     		 <td width="15%">
				     <select id="eng_1_special" name="eng_1_special" style="width:100%">
					     <option value=0 selected>精确</option>
					     <option value=1>模糊</option>
				     </select>
	     		 </td>
	     	 </tr> 
              <tr>
                <td align=center>出版时间</td>
                <td><input type="text" class="Wdate" id="startyeareng" value="" style="width:70%;vertical-align:middle" name="startyeareng"  onFocus="WdatePicker({el:'startyeareng',dateFmt:'yyyy'})"  /></td>
                <td>-<input type="text" class="Wdate" id="endyeareng" value="" style="width:20%;vertical-align:middle" name="endyeareng"  onFocus="WdatePicker({el:'endyeareng',dateFmt:'yyyy'})"  />
                 中医病名：<input type="text" name="tcmname" id="tcmname" value="" style="width:45%"/> 
                         <select id="tcmname_spec" name="tcmname_spec" style="width:8%">
						     <option value=0 selected>正名</option>
						     <option value=1>异名</option>
				     	 </select> 
				     	  <select id="tcmname_logic" name="tcmname_logic" style="width:8%">
						     <option value=0 selected>精确</option>
						     <option value=1>模糊</option>
				     	 </select> 
                </td>
                <td>
                	<input name="" type="button" class="butto" value=" 检 索 "/>&nbsp;
                    <input name="" type="button" class="butto" value=" 清 除 "/> 
                </td>
               </tr>
         </table> 
        </div> 
        <div class="sear" id="advbook" style="display:none">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">  
             <input id="book_i" value="1" type="hidden" name="book_i"></input>
             <input id="book_c" value="14" type="hidden" name="book_c"></input>
             <tr id="hidden_logical_book" style="display:none">
                <td nowrap="true" style="width:10%;" align="right" >
                    <select id="{key}_logical" name="{key}_logical">
                        <option value="0" selected="">并且</option>
                        <option value="1">或者</option>
                    </select> 
                </td>
             </tr> 
             <tr id="book_1">
	             <td nowrap  width="10%" align=center>
		    			<input onclick="AddRowEx('book','book_i','book_c');" type="button" value="  +  " class="butto"/>
		    			<input onclick="DeleteRow('book','book_i','book_c');" type="button" value="  -  " class="butto"/>
	             </td> 
	             <td width="15%">
		     		<select id='book_1_sel' name='book_1_sel' style="width:100%">
	                   		<option value="BOOKNAME">书籍名称</option>
							<option value="VOLUMESECTION">卷册章节</option>
							<option value="ORIGINALTEXT">原文文本</option>
							<option value="AUTHOR">作者</option>
							<option value='BOOKCD'>朝代</option>
			          </select>
	             </td>
	             <td width="60%" >
	     				<input name="book_1_value" id="book_1_value" type="text" value="" style="width:99%" class="sear_input"/>
	     		 </td>
	     		 <td width="15%">
				     <select id="book_1_special" name="book_1_special" style="width:100%">
					     <option value=0 selected>精确</option>
					     <option value=1>模糊</option>
				     </select>
	     		 </td>
	     	 </tr> 
              <tr>
                <td align=center>&nbsp;</td>
                <td>中医病名</td>
                <td> <input type="text" name="tcmname" id="tcmname" value="" style="width:75%"/> 
                         <select id="tcmname_spec" name="tcmname_spec" style="width:10%">
						     <option value=0 selected>正名</option>
						     <option value=1>异名</option>
				     	 </select> 
				     	  <select id="tcmname_logic" name="tcmname_logic" style="width:10%">
						     <option value=0 selected>精确</option>
						     <option value=1>模糊</option>
				     	 </select> 
                </td>
                <td>
                	<input name="" type="button" class="butto" value=" 检 索 "/>&nbsp;
                    <input name="" type="button" class="butto" value=" 清 除 "/> 
                </td>
               </tr>
         </table> 
        </div> 
         <iframe src="<%=basePath%>search/dosearch.do" width="100%" frameborder="0" height="100%" id="resultlist" name="resultlist"  ></iframe>
        
        </td> 
    </tr> 
</table>
</body>
</html> 
<script language=javascript>
var MS = "IE";
if(navigator.userAgent.indexOf("Firefox") > 0) {
    MS = "FF";
}
if (document.getElementById("resultlist")!=null) {   
     if (document.documentElement.clientHeight > 200) {
        document.getElementById("resultlist").style.height = document.documentElement.clientHeight - 100 + "px";
     }
}
if (document.getElementById("treeone")!=null) {   
     if (document.documentElement.clientHeight > 200) {
        document.getElementById("treeone").style.height = document.documentElement.clientHeight - 25 + "px";
     }
}

</script>